<?PHP

require_once('./function.php');


$page = max(1, intval($_GET['page']));
$tpp = 10;	$start_limit = ($page - 1) * $tpp;

$total = $db->result_first("select count(*) from `base` where `uid` = '$_COOKIE[cj_uid]'");
$multipage = multi($total, $tpp, $page, "");

$query = $db->query("SELECT * FROM `base` where `uid` = '$_COOKIE[cj_uid]' ORDER BY `lid` desc limit $start_limit, $tpp");

while($tmp = $db->fetch_array($query)) {
	$tmp['dateline'] = date('Y-m-d H:i',$tmp['dateline']);
	$list[] = $tmp;
}

include template('data.htm');

?>